package com.stone.sys.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.SequenceGenerator;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TUser entity. @author MyEclipse Persistence Tools
 */

@Entity
@Table(name = "SYS_MENU")

public class TMenu implements java.io.Serializable {

	 // Fields

    private Long id;
    
    private Long parentID;
    
    private String iconCls;
    
    private String title;
    
    private String note;
    
    private String url;
    
    private String qtip;
    
    private Integer menuSort;
    
    private Long btnId;
    
    private Long sortId;
    
    @Id
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_MENU")
    @SequenceGenerator(name="SEQ_MENU",allocationSize=1, sequenceName="SEQ_MENU")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "PARENT_ID")
	public Long getParentID() {
		return parentID;
	}

	public void setParentID(Long parentID) {
		this.parentID = parentID;
	}

	@Column(name = "ICON_CLS")
	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getNote() {
		return note == null ? "" : note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getUrl() {
		return url == null ? "" : url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getQtip() {
		return qtip == null ? "" : qtip;
	}

	public void setQtip(String qtip) {
		this.qtip = qtip;
	}

	@Column(name = "MENU_SORT")
	public Integer getMenuSort() {
		return menuSort;
	}

	public void setMenuSort(Integer menuSort) {
		this.menuSort = menuSort;
	}

	@Column(name = "BTN_ID")
	public Long getBtnId() {
		return btnId;
	}

	public void setBtnId(Long btnId) {
		this.btnId = btnId;
	}

	@Column(name = "SORT_ID")
	public Long getSortId() {
		return sortId;
	}

	public void setSortId(Long sortId) {
		this.sortId = sortId;
	}
    
    
}